<?php
class Admin_InstallController extends Main_Controller_AdminAction
{
    /**
     * @var Admin_Service_Install
     */
    private $_serviceInstall;
    
    /**
     * @return void
     */
    public function init() 
    {
    	parent::init();
    	$this->_serviceInstall = new App_Admin_Service_Install();
    }

    /**
     * @return render
     */
    public function indexAction() 
    {
        $step = $this->_getParam('step', 1);
        if ($step == 2) {
            $this->_serviceInstall->run();
        }

        $this->view->step = $step;
    	return $this->render();
    }
    
    

}
